package com.wx.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wx.dao.WxPicReplyMapper;
import com.wx.entity.WxPicReply;
import com.wx.entity.WxPicReplyExample;
import com.wx.service.WxPicReplyService;

@Service("WxPicReplyService")
public class WxPicReplyImpl implements WxPicReplyService {
	@Resource
	private WxPicReplyMapper wxPicReplyMapper;

	@Override
	public int insert(WxPicReply wxPicReply) {
		return wxPicReplyMapper.insert(wxPicReply);
	}

	@Override
	public List<WxPicReply> selectByExample(WxPicReplyExample example) {
		return wxPicReplyMapper.selectByExampleWithBLOBs(example);
	}
	@Override
	public WxPicReply selectByPrimaryKey(Integer id) {
		return wxPicReplyMapper.selectByPrimaryKey(id);
	}
	@Override
	public int countByExample(WxPicReplyExample example) {
		return wxPicReplyMapper.countByExample(example);
	}
	@Override
	public int updateByExample(WxPicReply record, WxPicReplyExample example) {
		return wxPicReplyMapper.updateByExample(record, example);
	}
	@Override
	public int updateByPrimaryKey(WxPicReply record) {
		return wxPicReplyMapper.updateByPrimaryKey(record);
	}
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return wxPicReplyMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int deleteByPrimaryKey(WxPicReplyExample example) {
		return wxPicReplyMapper.deleteByExample(example);
	}

	@Override
	public int updateById(WxPicReply bean) {
		return this.wxPicReplyMapper.updateByPrimaryKeySelective(bean);
	}
}
